package com.atguigu.spring5.config;

import com.atguigu.spring5.autowire.Dept;
import com.atguigu.spring5.autowire.Employee;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author : wenchao.long
 * @date : Created in 2020/10/29 14:43 周四
 * @description :
 */
@Configuration
public class AutowireConfig {

    @Bean
    public Employee getEmployee(Dept dept) {
        return new Employee(dept);
    }

    @Bean
    public Dept getDept() {
        return new Dept("后端组");
    }
}
